import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    showNav: false,
    city: {
      id: 0,
      name: '太原'
    },
    //是否显示下载app的广告条
    showAD: true

  },
  mutations: {
    setShowNav(state, val) {
      state.showNav = val;
    },
    updateCity(state, obj) {
      state.city = obj;
    },
    setShowAD(state, val) {
      state.showAD = val;
    }

  },
  actions: {
  },
  modules: {
  }
})
